using System;
using CStock;
using CUtil;
using System.Diagnostics;
using System.ComponentModel;

namespace CStock
{
	
	
    public class Asset : StockObjectBase, IAsset
    {


        protected DateTime dateBuy;
        protected double bid;
        protected int number;
        protected double valueCurrent;
        protected double valueInitial;
        protected double valueBuy;
        string ownerID;
        



        #region IAsset Members

        public static IAsset CreateCentralBankDeposit(string idCentralBank)
        {
            IAsset asset = new Asset();
            asset.ID = "Deposit " + DateTime.Now.ToShortDateString();
            asset.OwnerID = idCentralBank;
            return asset;


        }
        public string OwnerID
        {
            get
            {
                return this.ownerID;
                
            }
            set
            {
                ownerID = value;
            }
        }
        DateTime IAsset.DateBuy
        {
            get
            {
                return dateBuy;
            }
            set
            {
                dateBuy = value;
            }
        }
        int IAsset.Number
        {
            get
            {
                return number;
            }
            set
            {
                number = value;
            }
        }
        public double Bid
        {
            get
            {
                return this.bid;
            }
            set
            {
                bid = value;
            }
        }

        double IAsset.Value_Current
        {
            get
            {
                return valueCurrent;
            }
            set
            {
                valueCurrent = value;
            }
        }
        double IAsset.ValueBuy
        {
            get
            {
                return valueBuy;
            }
            set
            {
                valueBuy = value;
            }
        }
        
        double IAsset.Value_Initial
        {
            get
            {
                return valueInitial;
            }
            set
            {
                valueInitial = value;
            }
        }

        #endregion
    }
}
